package com.fifth.common.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;

import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * <p>
 * 
 * </p>
 *
 * @author 第五组
 * @since 2022-09-01
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("tb_link")
@ApiModel(value = "Link对象", description = "")
public class Link implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("主键id")
    @TableId(type = IdType.ASSIGN_ID)
    private String linkId;

    @ApiModelProperty("链接地址")
    private String linkUrl;

    @ApiModelProperty("链接名")
    private String linkName;

    @ApiModelProperty("0启用 1禁用")
    @TableField(fill = FieldFill.INSERT)
    private String isDisable;

    @ApiModelProperty("逻辑删除")
    @TableField(fill = FieldFill.INSERT)
    @TableLogic
    private Integer isDeleted;

    @ApiModelProperty("创建时间")
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty("更新时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

}
